package com.sh.ndt.common.dao;

import org.springframework.jdbc.core.JdbcTemplate;

/**
 * ************************************************************************************
 * @author Prashanth N C
 * ************************************************************************************
 * Package 		: com.sh.ndt.user.daos
 * Class Type 	: class 
 * ************************************************************************************
 * 
 * This is a base DAO class that is responsible for initiating the Spring JDBCTemplate.
 * This class has 2 methods accept and provide JDBCTemplate references to the classes
 * injected at the context level.  JdbcTemplate is being injected at the context level.
 * 
 * This class serves as a super class for all the DAO classes, the purpose is to allow
 * JDBC references to plug in through descriptors.
 * 
 * ************************************************************************************
 * 	 Revision History
 *   ---------------------------------------------------------------------------------
 *   Created Date		:	1st February 2012
 *   Last Modified Date	:	1st February 2012
 *   ---------------------------------------------------------------------------------   
 *   Modification History
 *   1. Initial Creation of Class to suite framework.
 *   
 * ************************************************************************************  	
 */
public class DAO {
	
	/**
	 * This variable is available through out the application
	 */
	private JdbcTemplate jdbcTemplate;
	
	/**
	 * 
	 * @param jdbcTemplate
	 * @return void
	 * 
	 * Public method used to set reference to JdbcTemplate from calling class.
	 */
	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

	/**
	 * 
	 * @return JdbcTemplate
	 * 
	 *         Public method used to get JdbcTemplate reference from calling
	 *         class.
	 */
	public JdbcTemplate getJdbcTemplate() {
		return jdbcTemplate;
	}

}
